<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>JS导入方式</title>
        <script>
            console.log("Hello，head标签的内联样式");
        </script>

        <script src="./js/myscript.js"></script>
    </head>
    <body>
        <h1>JavaScript导入方式</h1>
        <script>
            console.log("Hello，body标签的内联样式");
            alert("你好,内联样式弹窗");
        </script>
    </body>
</html>